package com.lantian.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lantian.teacher.entity.EduSubject;
import com.lantian.teacher.entity.vo.OneSubject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @name:
 * @description:    课程科目服务类
 * @author: meet
 * @create: 2020-05-01 14:32
 */
public interface EduSubjectService extends IService<EduSubject> {
    /**
     * 根据传递的EXCL表格模板导入课程分类
     * @param file
     * @return 错误集合信息
     */
    List<String> importEXCL(MultipartFile file);

    /**
     * 获取课程分类树状数据
     * @return
     */
    List<OneSubject> getTree();

    boolean deleteById(String id);

    boolean saveLevelOne(EduSubject eduSubject);

    boolean saveLevelTwo(EduSubject eduSubject);
}
